package com.docker.core.constant;

public class ConfigConstant {

    /**
     * 开发模式
     */
    public static final String SYS_DEV_MODEL = "sys.dev.mode";
    public static final String API_SECURE = "api.secure";
    public static final String SUPER_ADMIN_ROLE = "super.admin.role";

    public static final String HTTP_DEFFER_TIME = "http_deffer_time";
    public static final String WEBSOCKET_DEFFER_TIME = "websocket_deffer_time";

    /**
     * 分页
     */
    public static final String SYS_PAGINATE_PAGENUM_NAME = "sys.paginate.num.name";
    public static final String SYS_PAGINATE_PAGESIZE_NAME = "sys.paginate.size.name";
    public static final String SYS_PAGINATE_PAGESIZE = "sys.paginate.size";

    /**
     * CORS
     */
    public static final String CORS_ALLOWED_ORIGINS = "cors.allowed-origins"; //允许访问的客户端域名
    public static final String CORS_ALLOWED_METHODS = "cors.allowed-methods"; // 允许访问的方法名
    public static final String CORS_ALLOWED_HEADERS = "cors.allowed-headers"; //允许服务端访的客户端请求头
    public static final String CORS_EXPOSED_HEADERS = "cors.exposed-headers"; // 允许客户端访问的服务端响应头
    public static final String CORS_ALLOW_CREDENTIALS = "cors.allow-credentials"; //是否允许请求带有验证信息
    public static final String CORS_MAX_AGE = "cors.max-age"; //预检验请求时间

    public static final String USER_LOGIN_ERROR_MAXNUM = "user.login.error.max.num";

    public static final String DOCKER_MAX_CONNECT = "docker.max.connect";

}
